<%--
  Created by IntelliJ IDEA.
  User: Hasee
  Date: 2018/11/23
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
	<meta charset="utf-8" />
    <!--用百度的静态资源库的cdn安装bootstrap环境-->
    <!-- Bootstrap 核心 CSS 文件 -->
    <link href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!--font-awesome 核心我CSS 文件-->
    <link href="//cdn.bootcss.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
    <!-- 在bootstrap.min.js 之前引入 -->
    <script src="http://apps.bdimg.com/libs/jquery/2.0.0/jquery.min.js"></script>
    <!--jquery.validate-->
    <script type="text/javascript" src="bootstrap/js/jquery.validate.min.js" ></script>
    <script type="text/javascript" src="bootstrap/js/message.js" ></script>
    <style type="text/css">
    </style>
</head>
<body>

<jsp:include page="navBar.jsp"/>
<br><br><br><br><br>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
		
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-4 column">
			<%
				//此时用户已经登录
				if (session.getAttribute("users") != null){
					response.sendRedirect(request.getContextPath()+"/index.jsp");
				}
				if (request.getAttribute("error")!= null){
			%>
			<div class="alert alert-warning">
				<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
				<strong>警告！</strong><span class="tips-text"><%= request.getAttribute("error")%></span>
			</div>
			<%
				}
			%>
			<form role="form" action="LoginController" method="post">
				<div class="form-group">
					 <label for="exampleInputEmail1">账号</label><input type="text" class="form-control" id="exampleInputEmail1" name="name"/>
				</div>
				<div class="form-group">
					 <label for="exampleInputPassword1">密码</label><input type="password" class="form-control" id="exampleInputPassword1" name="password" />
				</div>
				<div class="checkbox">
					 <label for="remember-password"><input type="checkbox" onclick="cookierRmemberPassword()" id="remember-password"/>请记住我</label>
				</div> 
				<div class="form-group">
                    <input type="submit" class="btn btn-success pull-right" value="登录"/>
                    <input type="button" class="btn btn-info pull-left" id="back_btn" value="立刻注册" onclick="location.href='register.jsp'"/>
                </div>
			</form>
		</div>
		<div class="col-md-8 column">
			<div class="carousel slide" id="carousel-65000">
				<ol class="carousel-indicators">
					<li data-slide-to="0" data-target="#carousel-65000">
					</li>
					<li data-slide-to="1" data-target="#carousel-65000" class="active">
					</li>
					<li data-slide-to="2" data-target="#carousel-65000">
					</li>
				</ol>
				<div class="carousel-inner">
					<div class="item">
						<img alt="" src="bootstrap/images/gz.jpg" width="800" height="200" />
						<div class="carousel-caption">
							<h4>
							旅行 说走就走
							</h4>
							<p>

							</p>
						</div>
					</div>
					<div class="item active">
						<img alt="" src="bootstrap/images/gz.jpg" width="800" height="200"/>
						<div class="carousel-caption">
							<h4>
								旅行 自由自在
							</h4>
							<p>
							</p>
						</div>
					</div>
					<div class="item">
						<img alt="" src="bootstrap/images/gz.jpg" width="800" height="200"/>
						<div class="carousel-caption">
							<h4>
								加入我们！现在就开启你自己的旅途吧！
							</h4>
							<p>
							</p>
						</div>
					</div>
				</div> <a class="left carousel-control" href="#carousel-65000" data-slide="prev"><span class="glyphicon glyphicon-chevron-left"></span></a> <a class="right carousel-control" href="#carousel-65000" data-slide="next"><span class="glyphicon glyphicon-chevron-right"></span></a>
			</div>
		</div>
	</div>
</div>
	<script type="text/javascript" src="bootstrap/js/remember.js" ></script>
</body>
</html>
